package zgc.demo.provider.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import zgc.demo.provider.entity.Goods;
import zgc.demo.provider.mapper.GoodsMapper;
import zgc.demo.provider.service.GoodsService;

import java.util.List;

@Service
public class GoodsServiceImpl implements GoodsService {
    @Autowired
    private GoodsMapper goodsMapper;

    @Override
    public Goods getGoodsById(String goodsId) {
        return goodsMapper.getGoodsById(goodsId);
    }

    @Override
    public List<Goods> getGoodsLikeName(String goodsName) {
        return goodsMapper.getGoodsLikeName(goodsName);
    }

    @Override
    public List<Goods> getGoods() {
        return goodsMapper.getList();
    }
}
